table of contents
GLUTVISIBILITYFUNC(3) | Library Functions Manual (local) | GLUTVISIBILITYFUNC(3) |
NAME¶
glutVisibilityFunc
—
Sets the Visibility callback for the current
window.
LIBRARY¶
OpenGLUT - deprecated
SYNOPSIS¶
#include
<openglut.h>
void
glutVisibilityFunc
(void(
*callback )( int status ));
PARAMETERS¶
callback
Client hook for visibility changes.
DESCRIPTION¶
OpenGLUT may call this function when your window's visbility status has changed.
status
can take on two values:
GLUT_NOT_VISIBLE
or
GLUT_VISIBLE
. If any pixel of your window (including descendants) is visible, your window is
GLUT_VISIBLE
.
The callback is bound to the
current window
.
CAVEATS¶
This is not a polling mechanism. You are only informed of transitions that OpenGLUT observes while your callback is in place.
This function appears to be superceded by glutWindowStatusFunc().
This callback is mutually exclusive of glutWindowStatusFunc().